home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3brichtextlabel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.5 KB  |  63 lines

  1. /* 
  2.  *
  3.  * $Id: k3brichtextlabel.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2005 Waldo Bastian <bastian@kde.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef K3BRICHTEXTLABEL_H
  17. #define K3BRICHTEXTLABEL_H
  18.  
  19. #include <qlabel.h>
  20.  
  21. #include <k3b_export.h>
  22.  
  23. /**
  24.  * @short A replacement for QLabel that supports richtext and proper layout management
  25.  *
  26.  * @author Waldo Bastian <bastian@kde.org>
  27.  */
  28.  
  29. /*
  30.  * QLabel
  31.  */
  32. class LIBK3B_EXPORT K3bRichTextLabel : public QLabel {
  33.   Q_OBJECT
  34.  
  35. public:
  36.   /**
  37.    * Default constructor.
  38.    */
  39.   K3bRichTextLabel( QWidget *parent, const char *name = 0 );
  40.   K3bRichTextLabel( const QString &text, QWidget *parent, const char *name = 0 );
  41.  
  42.   int defaultWidth() const { return m_defaultWidth; }
  43.   void setDefaultWidth(int defaultWidth);
  44.  
  45.   virtual QSize minimumSizeHint() const;
  46.   virtual QSize sizeHint() const;
  47.   QSizePolicy sizePolicy() const;
  48.  
  49. public slots:
  50.   void setText( const QString & );
  51.  
  52. protected:
  53.   int m_defaultWidth;
  54.  
  55. protected:
  56.   virtual void virtual_hook( int id, void* data );
  57. private:
  58.   class K3bRichTextLabelPrivate;
  59.   K3bRichTextLabelPrivate *d;
  60. };
  61.  
  62. #endif // K3BRICHTEXTLABEL_H
  63.